package cn.wolfcode.p2p.base.service.impl;

import cn.wolfcode.p2p.base.domain.Ordertime;
import cn.wolfcode.p2p.base.excetion.DisplayableExcetion;
import cn.wolfcode.p2p.base.mapper.OrdertimeMapper;
import cn.wolfcode.p2p.base.service.IOrdertimeService;
import cn.wolfcode.p2p.base.util.UserContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class OrdertimeServiceImpl implements IOrdertimeService {

    @Autowired
    private OrdertimeMapper ordertimeMapper;

    @Override
    public Ordertime get(Long id) {
        return ordertimeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Ordertime> selectAll() {
        return ordertimeMapper.selectAll();
    }
}
